package Main_logic;

class User {
    private String name;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void menu(){

    }

}

class Manage_user extends User {

    public Manage_user(String name) {
        super(name);
    }

    public void menu() {//菜单得打印
        System.out.println("********************");
        System.out.println("1,查找图书");
        System.out.println("2，新增图书");
        System.out.println("3，删除图书");
        System.out.println("4，显示图书");
        System.out.println("5，退出系统");
        System.out.println("********************");
        System.out.print("亲输入你的操作: ");
    }//菜单得打印
}

class Common_user extends User {

    public Common_user(String name) {
        super(name);
    }

    public void menu() {
        System.out.println("********************");
        System.out.println("1,查找图书");
        System.out.println("2，借阅图书");
        System.out.println("3，归还图书");
        System.out.println("4，退出系统");
        System.out.println("********************");
        System.out.print("亲输入你的操作: ");
    }//菜单得打印
}
